import service from '@/utils/request'
// @Tags CoConspirator
// @Summary 创建嫌疑人管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CoConspirator true "创建嫌疑人管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /CC/createCoConspirator [post]
export const createCoConspirator = (data) => {
  return service({
    url: '/CC/createCoConspirator',
    method: 'post',
    data
  })
}

// @Tags CoConspirator
// @Summary 删除嫌疑人管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CoConspirator true "删除嫌疑人管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CC/deleteCoConspirator [delete]
export const deleteCoConspirator = (params) => {
  return service({
    url: '/CC/deleteCoConspirator',
    method: 'delete',
    params
  })
}

// @Tags CoConspirator
// @Summary 批量删除嫌疑人管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除嫌疑人管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CC/deleteCoConspirator [delete]
export const deleteCoConspiratorByIds = (params) => {
  return service({
    url: '/CC/deleteCoConspiratorByIds',
    method: 'delete',
    params
  })
}

// @Tags CoConspirator
// @Summary 更新嫌疑人管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CoConspirator true "更新嫌疑人管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /CC/updateCoConspirator [put]
export const updateCoConspirator = (data) => {
  return service({
    url: '/CC/updateCoConspirator',
    method: 'put',
    data
  })
}

// @Tags CoConspirator
// @Summary 用id查询嫌疑人管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.CoConspirator true "用id查询嫌疑人管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /CC/findCoConspirator [get]
export const findCoConspirator = (params) => {
  return service({
    url: '/CC/findCoConspirator',
    method: 'get',
    params
  })
}

// @Tags CoConspirator
// @Summary 分页获取嫌疑人管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取嫌疑人管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /CC/getCoConspiratorList [get]
export const getCoConspiratorList = (params) => {
  return service({
    url: '/CC/getCoConspiratorList',
    method: 'get',
    params
  })
}

// @Tags CoConspirator
// @Summary 不需要鉴权的嫌疑人管理接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.CoConspiratorSearch true "分页获取嫌疑人管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /CC/getCoConspiratorPublic [get]
export const getCoConspiratorPublic = () => {
  return service({
    url: '/CC/getCoConspiratorPublic',
    method: 'get',
  })
}
